package com.cal.utms.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the instrument_transaction database table.
 * 
 */
@Entity
@Table(name="instrument_transaction")
@NamedQuery(name="InstrumentTransaction.findAll", query="SELECT i FROM InstrumentTransaction i")
public class InstrumentTransaction implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(unique=true, nullable=false)
	private int id;

	@Column(name="COMMENT", length=45)
	private String comment;

	@Temporal(TemporalType.TIMESTAMP)
	private Date date;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="MODIFIED_DATE")
	private Date modifiedDate;

	@Column(length=20)
	private String status;

	@Column(name="TRANS_AMOUNT", precision=10, scale=4)
	private BigDecimal transAmount;

	//bi-directional many-to-one association to DealInstrumentMap
	@ManyToOne
	@JoinColumn(name="DEAL_INS_MAP_ID")
	private DealInstrumentMap dealInstrumentMap;

	public InstrumentTransaction() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Date getDate() {
		return this.date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Date getModifiedDate() {
		return this.modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public BigDecimal getTransAmount() {
		return this.transAmount;
	}

	public void setTransAmount(BigDecimal transAmount) {
		this.transAmount = transAmount;
	}

	public DealInstrumentMap getDealInstrumentMap() {
		return this.dealInstrumentMap;
	}

	public void setDealInstrumentMap(DealInstrumentMap dealInstrumentMap) {
		this.dealInstrumentMap = dealInstrumentMap;
	}

}